package com.yedean.mall.portal.service.impl;

import com.yedean.mall.mapper.OmsOrderReturnReasonMapper;
import com.yedean.mall.model.OmsOrderReturnReason;
import com.yedean.mall.model.OmsOrderReturnReasonExample;
import com.yedean.mall.portal.service.OmsOrderReturnReasonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OmsOrderReturnReasonServiceImpl implements OmsOrderReturnReasonService {
    @Autowired
    private OmsOrderReturnReasonMapper returnReasonMapper;
    @Override
    public List<OmsOrderReturnReason> list() {
        OmsOrderReturnReasonExample example = new OmsOrderReturnReasonExample();
        example.setOrderByClause("sort desc");
        return returnReasonMapper.selectByExample(example);
    }
}
